Enabling Video Overlay

The following example uses the capDriverGetCaps51YP2S macro to determine whether a capture driver has overlay capabilities; if it does, the macro enables the overlay.

CAPDRIVERCAPS CapDrvCaps;

 

capDriverGetCaps(hWndC, &CapDrvCaps, sizeof (CAPDRIVERCAPS));

 

if (CapDrvCaps.fHasOverlay)

    capOverlay(hWndC, TRUE);